package com.blb.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author xuyuanxin
 * @since 2019-12-23
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_share")
public class Share extends Model<Share> {

    private static final long serialVersionUID=1L;

    /**
     * id
     */
    private String id;

    /**
     * 用户id
     */
    private String userId;

    /**
     * 文件夹id
     */
    private String classificationId;

    /**
     * 笔记id
     */
    private String notesId;

    /**
     * 存放链接
     */
    private String shareLink;

    /**
     * 类型(分享的是文件还是文件夹)
     */
    private String type;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
